package com.bit.springblogdemo.service;

import com.bit.springblogdemo.pojo.dataobject.BlogInfo;
import com.bit.springblogdemo.pojo.request.AddBlogRequest;
import com.bit.springblogdemo.pojo.request.UpdateBlogRequest;
import com.bit.springblogdemo.pojo.response.BlogInfoResponse;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface BlogService {
    List<BlogInfoResponse> getList();


    BlogInfoResponse getBlogDetail(Integer blogId);

    BlogInfo getBlogInfo(Integer blogId);

    Boolean addBlog(AddBlogRequest addBlogRequest);

    Boolean updateBlog(UpdateBlogRequest updateBlogRequest);

    Boolean deleteBlog(@NotNull(message = "blogId 不能为null") Integer blogId);
}
